package com.xxwu.springlibrary.model;

import lombok.Data;

@Data
public class PageRequest {
    //每页显示的个数
    private Integer pageSize = 10;
    //当前页号
    private Integer pageCurrent = 1;
    //当前页limit序号
    private Integer offset = 0;

    public Integer getOffset() {
        return (pageCurrent - 1) * pageSize;
    }
}
